<?php
$appid = intval($_GET['appid']);
$table='tttj.bottom_change';
$select_sql="select * from $table where appid= $appid";
$select_query = exec_db($select_sql);
while($s_value = mysqli_fetch_assoc($select_query))
{
    $s_value['createtime'] = date('Y-m-d H:i:s',$s_value['on_time']);
    $list[]=$s_value;
}
$content = '<?php ';
$content .= "\$list = " . var_export($list, true) . ";\r\n";
$content .= ' ?>';

file_put_contents(S_ROOT . 'source/data/bottom_change' . $appid . '.php', $content);
?>